<%@ include file="/WEB-INF/views/admin/header.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<div id="section">
	<div id ="mainContent">
			
			
			<div id="labelPage">ข้อมูล ผู้ใช้งาน</div>
			
			<div id="ctrlWrap">
				<div id="ctrlL">
				</div>	
				<div id="ctrlR"><a href="userAddForm"><img  src="${context}/resources/img/add.jpg"/></a></div>
			</div>
			
			<form:form  action="${action}" method="post" id="userEdit" modelAttribute="User" >
				<table class="tableList">
					<tr>
						<td>login: </td><td><input type="text" name="login" value="${user.login}"></td>	
						<td>name: </td><td><input type="text" name="name" value="${user.name}"></td>
						<td>password: </td><td><input type="text" name="password" value="${user.password}"></td>
						<td>loginDt: </td><td><input type="text" name="loginDt" value="${user.loginDt}" class="dateInput"></td>
						<td colspan="2"><input type="hidden" name="userId" value="${user.userId}"><button type="submit">บันทึก</button></td>
					</tr>
				</table>
			</form:form>
		
	</div>	
</div>
<%@ include file="/WEB-INF/views/admin/footer.jsp" %>



